<!--
 * @Description: 
 * @Author: xuechengwu
 * @Email: 516385822@qq.com
 * @Date: 2022-02-09 14:58:14
 * @LastEditTime: 2022-02-09 14:58:15
 * @LastEditors: xuechengwu
-->
<template>
  <div>
    <div class="text-label">
        文本内容
        <div class="text-link-slot">
            <slot name="text-link"></slot>
        </div>
    </div>
    <el-input
        type="textarea"
        :rows="2"
        placeholder="请输入内容"
        :value="get('data.text', '')"
        @input="(value) => update({
            changes: [{
                path: 'data.text',
                value,
            }]
        })"
    >
    </el-input>
  </div>
</template>

<script>
export default {
    props: ['get'],
    inject: ['update'],
}
</script>